All Questions
4 questions
6votes
5answers
473views
Get n-th perfect number
The task: A number is considered perfect if its digits sum up to exactly 10. Given a positive integer n, return the n-th perfect number. For example, given 1, you should return 19. Given 2,...
1vote
2answers
276views
Logarithmic growth counter
I'm looking for a way to have an logarithmic incremental counter. The counter goal is related to a numeric value than goes from 1 to Infinity. The counter maximum value should be 1000. The sequence ...
2votes
3answers
535views
Estimating the total production count from a few random serial numbers
This is basically my attempt to the German Tank Problem in which we are given a few serial numbers and expected to return an estimation of the total production count. Such as, if 4 tanks are captured ...
2votes
1answer
510views
Solving Robot Paths with Pascal's Triangle
I wanted to take on the challenge of the classic Robot Path's problem but solve it using Pascal's triangle. The approach was generate pascal's triangle, then grab the middle element from the row. I ...